home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11862 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: news.daimi.aau.dk!glad
  2. From: carlvern@psy.aau.dk (Carl Verner Skou)
  3. Newsgroups: comp.lang.basic.misc,comp.lang.basic.visual.misc,comp.lang.c,comp.lang.c++,comp.os.ms-windows.apps.comm,comp.os.ms-windows.apps.word-proc,comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools.mfc,comp.windows.misc
  4. Subject: Re: Help finding contents of current directory.
  5. Date: 16 Mar 1996 19:00:09 GMT
  6. Organization: Institute of Psychology, AAU DK
  7. Message-ID: <4if33p$7kt@gjallar.daimi.aau.dk>
  8. References: <4ho68l$qhi@ruby.digisys.net> <4hrjt1$jpr@news.microsoft.com> <3149D3CC.7D67@gate.net>
  9. NNTP-Posting-Host: carlvern.psy.aau.dk
  10. X-Newsreader: WinVN 0.99.7
  11.  
  12. In article <3149D3CC.7D67@gate.net>, hollon@gate.net says...
  13. >
  14. >I am trying to get a listing of the files in the current directory. I realize 
  15. >I will have to use stat to determin wether it is a file or a directory.  But 
  16. >how do I find out what's in the directory in the first place.
  17.  
  18. In Windows 3.1 use: _dos_findfirst( "*.*", _A_NORMAL | _A_SUBDIR, &c_file );
  19. and _dos_findnext();, examine the attribute c_file.attrib to find out if it is 
  20. a file or directory.
  21.  
  22. -- 
  23.  
  24. yours Carl Verner Skou
  25.  
  26. ***********************************************************
  27.   What's mind? Doesn't matter. What's matter? Don't mind.
  28.  
  29.